<?php
/**
 * Created by PhpStorm.
 * User: Administrator
 * Date: 2019/8/22 0022
 * Time: 17:46
 */

namespace backend\assets;


use common\components\GlobalUrlComponent;
use yii\web\AssetBundle;

class CodeMirrorAsset extends AssetBundle
{
    public $baseUrl = '';

    public $css = [
        'plugins/codemirror-5.48.4/lib/codemirror.css',
        'plugins/codemirror-5.48.4/theme/panda-syntax.css',
    ];
    public $js = [
        'plugins/codemirror-5.48.4/lib/codemirror.js',
        'plugins/codemirror-5.48.4/mode/javascript/javascript.js',
        'plugins/codemirror-5.48.4/init.js',
    ];
    public $depends = [
        AppAsset::class
    ];
    public function __construct(array $config = [])
    {
        $this->baseUrl = GlobalUrlComponent::buildStaticUrl('/');

        parent::__construct($config);
    }
}